<%-- 
    Document   : contact-content
    Created on : May 12, 2011, 1:57:25 PM
    Author     : Stephen Moulton
--%>
<%@page import="javax.persistence.metamodel.SetAttribute"%>
<%
    //This section is used when the mailling list is entered and the result is show at the top of the content
    if (request.getParameter("sent") == null) 
    {
        //Nothing
    } 
    else 
    {
        int sent = Integer.parseInt(request.getParameter("sent"));                 
        switch(sent) 
        {
            case 0:
                out.println("<div class=\"subcriber-green\">Your message has been send succesfully.</div>");
                break;
            case 1:
                out.println("<div class=\"subcriber-red\">Email was unsucessfully send, please try again later.</div>");
                break;
            default:
                out.println("");
        }
    } //end of else   
 
%>
<div class="page-title">Contact Us</div>
<div id="contact">
    <form name="contact" method="post" action="SendMail.jsp">
    <table border="0" width="100%">
        <tbody>
            <tr>
                <td>Name:<br/><div class="required-text">Required</div></td>
                <td><input id="namebox" type="text" name="name" width="200px"/></td>
                <th rowspan="4">
                    <table border="0" width="100%">
                        <tbody>
                            <tr><td><a href="http://maps.google.co.uk/maps?q=computing+dep+lancaster&hl=en&um=1&ie=UTF-8&sa=N&tab=vl" > <img id="map" height="240px" width="280px" src="map.png" /></a></td></tr>
                            <tr>
                                <td>Address<br/></td>
                            </tr>
                            <tr>
                                <td><div class="required-text">InfoLab21 South Drive<br/> Lancaster University<br/>
                                        Lancaster<br/>
                                        Lancashire<br/>
                                        LA1 4YW</div></td>
                            </tr>
                        </tbody>
                    </table>
                </th>
            </tr>
            <tr>
                <td>Email Address:<br/><div class="required-text">Required</div></td>
                <td><input id="emailbox" type="text" name="email" width="200px"/></td>
            </tr>
            <tr>
                <td >Your Message:<br/><div class="required-text">Required</div></td>
                <td><textarea id="messagebox" type="text" name="message" /></textarea></td>
            </tr>
            <tr>
                <td></td>
                <td><input style="width: 120px;height: 30px;background: gray;" type="submit" value="Send Message" /></td>
            </tr>
        </tbody>
    </table>
</form></div>
